package set;

import Tree.BST;

public class BSTSET<E extends Comparable<E>> implements Set<E> {

    private BST<E> tree;

    public BSTSET(){
        tree = new BST<E>();
    }

    @Override
    public void add(E e) {
        tree.add(e);
    }

    @Override
    public void remove(E e) {
        tree.remove(e);
    }

    @Override
    public boolean contains(E e) {
        return tree.contains(e);
    }

    @Override
    public int getSize() {
        return tree.getSize();
    }

    @Override
    public boolean isEmpty() {
        return tree.isEmpty();
    }
}
